package cn.ccit.servers;

import java.util.List;

import cn.ccit.DAO.SystemRoleDAO;
import cn.ccit.DAOImp.SystemRoleDAOimp;
import cn.ccit.entites.SystemRole;
import cn.ccit.iservers.ISystemRoleServers;

public class SystemRoleServers implements ISystemRoleServers {
	private SystemRoleDAO srl=new SystemRoleDAOimp();
	@Override
	public boolean addSystemRole(SystemRole ua) {
		return srl.addSystemRole(ua);
	}

	@Override
	public boolean removeSystemRole(SystemRole ua) {
		return srl.removeSystemRole(ua); 
	}

	@Override
	public boolean changeSystemRoleInfo(SystemRole ua) {
		return srl.changeSystemRoleInfo(ua);
	}

	@Override
	public List<SystemRole> getSomeSystemRoles(int start, int limit) {
		return srl.getSomeSystemRoles(start, limit);
	}

	@Override
	public SystemRole searchSystemRoleByID(int id) {
		return srl.searchSystemRoleByID(id);
	}

}
